package com.lxk.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

public class Ticket implements Serializable {
    private Integer ticketId;

    private Integer goodsId;

    private Integer shopId;

    private String ticketName;

    private String ticketDesc;

    private Integer ticketTimespan;

    private String ticketRule;

    private BigDecimal ticketPrice;

    private static final long serialVersionUID = 1L;

    public Integer getTicketId() {
        return ticketId;
    }

    public void setTicketId(Integer ticketId) {
        this.ticketId = ticketId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName == null ? null : ticketName.trim();
    }

    public String getTicketDesc() {
        return ticketDesc;
    }

    public void setTicketDesc(String ticketDesc) {
        this.ticketDesc = ticketDesc == null ? null : ticketDesc.trim();
    }

    public Integer getTicketTimespan() {
        return ticketTimespan;
    }

    public void setTicketTimespan(Integer ticketTimespan) {
        this.ticketTimespan = ticketTimespan;
    }

    public String getTicketRule() {
        return ticketRule;
    }

    public void setTicketRule(String ticketRule) {
        this.ticketRule = ticketRule == null ? null : ticketRule.trim();
    }

    public BigDecimal getTicketPrice() {
        return ticketPrice;
    }

    public void setTicketPrice(BigDecimal ticketPrice) {
        this.ticketPrice = ticketPrice;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ticketId=").append(ticketId);
        sb.append(", goodsId=").append(goodsId);
        sb.append(", shopId=").append(shopId);
        sb.append(", ticketName=").append(ticketName);
        sb.append(", ticketDesc=").append(ticketDesc);
        sb.append(", ticketTimespan=").append(ticketTimespan);
        sb.append(", ticketRule=").append(ticketRule);
        sb.append(", ticketPrice=").append(ticketPrice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}